<?php include_partial("gestionadministracion/menuadmin") ?>

<div id="sf_admin_container" style="width: 100%;height: 100%">
<div style = "display: table;  width:100%;">
 <h1 >CONTRIBUYENTES</h1>
<div >
  <a  align="left" href="<?php echo url_for('contribuyente/new') ?>">   
      <img  src="/images/botonagregar.jpg" width="69" height="22" border="1"/>
  </a>
 </div>
 <div style="float:left;width: 78%;margin-top:0px;">
         <div id="listadoContribuyentes">
                <?php
                if (count($contribuyentes) != 0) {
                    include_partial("contribuyente/listadocontribuyentes", array("contribuyentes" => $contribuyentes));
                }
                ?>
            </div>
            <br>
            
   </div>
 <div id="sf_admin_filter"style = "float: right; height: 75px; width:21%">
            <?php
            echo jq_form_remote_tag(array(
                'update' => 'listadoContribuyentes',
                'url' => 'contribuyente/BuscarContribuyentes',
                'loading' => "$('#loadingContribuyentes').css('display', '')",
                'complete' => "$('#loadingContribuyentes').css('display', 'none')"
            ))
            ?>
            <table class="fuente8">
                <thead><tr><th colspan="2"><span style="float:left">FILTRO</span></th></tr></thead>
                 <tbody id="filtros" >
                <tr>
                    <td>
                        <label for="contribuyente"><b>Nombre</b></label>
                    </td>
                    <td>
                        <input id="nombre" name="nombre" style="text-transform:uppercase;" onkeyup="javascript:this.value=this.value.toUpperCase();">  
                    </td>
                </tr>
                <tr>
                    <td><label for="contribuyente"><b>Apellido</b></label></td>
                    <td>
                        <input id="apellido" name="apellido" style="text-transform:uppercase;" onkeyup="javascript:this.value=this.value.toUpperCase();">  
                    </td>
                </tr>
                 <tr>
                    <td><label for="contribuyente"><b>Dni</b></label></td>
                    <td>
                        <input id="dni" name="dni"  >  
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type="submit" style="float:right" value="Filtrar" onmouseover="style.cursor=cursor"/>
                        <span id="loadingContribuyentes" style="float:right;margin-right:10px;display: none;">
                            <img src="/images/load.gif">
                        </span>
                    </td>
                </tr>
            </tbody>
            </table>
        </div>     

        </div>
  
    </div>
 

